﻿using MediatR;
using U.B.DoMain;
using U.B.ErrorCode;
using U.B.ReadApi.Command;
using U.B.ReadApi.Dto;
using U.B.Repistory;

namespace U.B.ReadApi.CommandHander
{
    public class UserCommandHander : IRequestHandler<UserCommand, ApiResult<List<UserDto>>>
    {
        private readonly IRepistory<UserDto> _userRepository;
        public UserCommandHander(IRepistory<UserDto> userRepository)
        {
            _userRepository = userRepository;
        }
        Task<ApiResult<List<UserDto>>> IRequestHandler<UserCommand, ApiResult<List<UserDto>>>.Handle(UserCommand request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
        }
    }
}
